package com.macrog.controller;

import com.macrog.entity.Taxpayer;
import com.macrog.service.TaxpayerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by guohong on 2018/6/19.
 */
@Controller
public class TaxpayerController {
    @Autowired
    private TaxpayerService taxpayerService;

    @RequestMapping("/taxpayer/info")
    @ResponseBody
    public String getTaxpayer(String nsrsbh) {
//        Taxpayer taxpayer = taxpayerService.getById(nsrsbh);
//        System.out.println(taxpayer);
        taxpayerService.getSql();
        return "success";
    }
}
